package com.anhuanjia.tools.eao.bean;

import java.util.Date;
import java.util.List;

import com.efastsoft.framework.annotation.dao.Column;
import com.efastsoft.framework.annotation.dao.Indexes;
import com.efastsoft.framework.annotation.dao.Table;
import com.efastsoft.framework.data.DataType;
import com.efastsoft.framework.orm.DAO;

/**
 * 菜单表
 * 
 * @author Administrator
 *
 */
@Table("eao_menu")
@Indexes("")
@SuppressWarnings("serial")
public class EaoMenu extends DAO<EaoMenu> {

	@Column(type = DataType.LONG, precision = 0, mandatory = true, pk = true)
	protected Long MenuId;// 主键

	@Column(type = DataType.STRING, length = 100)
	protected String MenuName;// 菜单名

	@Column(type = DataType.STRING, length = 300)
	protected String MenuUrl;// 菜单路径

	@Column(type = DataType.STRING, length = 255)
	protected String Iconcode;// 菜单对应的图标

	@Column(type = DataType.INTEGER, length = 255)
	protected Integer State;// 是否启用

	@Column(type = DataType.LONG, length = 50)
	protected Long ParentId;// 父级菜单

	@Column(type = DataType.INTEGER, length = 255)
	protected Integer Level;// 显示顺序

	@Column(type = DataType.DATETIME, length = 255)
	protected Date CreateTime;

	@Column(type = DataType.DATETIME, length = 255)
	protected Date UpdateTime;

	private List<EaoMenu> Children;

	public Long getMenuId() {
		return MenuId;
	}

	public void setMenuId(Long menuId) {
		MenuId = menuId;
	}

	public String getMenuName() {
		return MenuName;
	}

	public void setMenuName(String menuName) {
		MenuName = menuName;
	}

	public String getMenuUrl() {
		return MenuUrl;
	}

	public void setMenuUrl(String menuUrl) {
		MenuUrl = menuUrl;
	}

	public String getIconcode() {
		return Iconcode;
	}

	public void setIconcode(String iconcode) {
		Iconcode = iconcode;
	}

	public Integer getState() {
		return State;
	}

	public void setState(Integer state) {
		State = state;
	}

	public Long getParentId() {
		return ParentId;
	}

	public void setParentId(Long parentId) {
		ParentId = parentId;
	}

	public Integer getLevel() {
		return Level;
	}

	public void setLevel(Integer level) {
		Level = level;
	}

	public Date getCreateTime() {
		return CreateTime;
	}

	public void setCreateTime(Date createTime) {
		CreateTime = createTime;
	}

	public Date getUpdateTime() {
		return UpdateTime;
	}

	public void setUpdateTime(Date updateTime) {
		UpdateTime = updateTime;
	}

	public List<EaoMenu> getChildren() {
		return Children;
	}

	public void setChildren(List<EaoMenu> children) {
		Children = children;
	}

}
